package top.jasonlam.car.controller.car;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import top.jasonlam.car.entity.Car;

@Repository
public interface CarRepository extends JpaRepository<Car,String> , JpaSpecificationExecutor<Car> {
    Page<Car> findAllByUsername(String username, Pageable page);
}
